//package com.spark.bitrade.config;
//
//import com.spark.bitrade.ext.SmartHttpSessionStrategy;
//import org.springframework.context.annotation.Bean;
//import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
//import org.springframework.session.web.http.CookieHttpSessionStrategy;
//import org.springframework.session.web.http.HeaderHttpSessionStrategy;
//import org.springframework.session.web.http.HttpSessionStrategy;
//
//
//@EnableRedisHttpSession
//public class HttpSessionConfig {
//
//	 @Bean
//	 public HttpSessionStrategy httpSessionStrategy(){
//		 HeaderHttpSessionStrategy headerSession = new HeaderHttpSessionStrategy();
//		 CookieHttpSessionStrategy cookieSession = new CookieHttpSessionStrategy();
//		 headerSession.setHeaderName("x-auth-token");
//		 return new SmartHttpSessionStrategy(cookieSession, headerSession);
//	 }
//}
